home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XSupportsLocale.z / XSupportsLocale
Encoding:
Text File  |  2002-10-03  |  5.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXSSSSuuuuppppppppoooorrrrttttssssLLLLooooccccaaaallll((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXSSSSuuuuppppppppoooorrrrttttssssLLLLooooccccaaaallll((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XSupportsLocale, XSetLocaleModifiers - determine locale
  10.           support and configure locale modifiers
  11.  
  12.      SSSSYYYYNNNNTTTTAAAAXXXX
  13.           Bool XSupportsLocale()
  14.  
  15.           char *XSetLocaleModifiers(_m_o_d_i_f_i_e_r__l_i_s_t)
  16.                 char *_m_o_d_i_f_i_e_r__l_i_s_t;
  17.  
  18.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  19.           _m_o_d_i_f_i_e_r__l_i_s_t
  20.                     Specifies the modifiers.
  21.  
  22.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.           The _X_S_u_p_p_o_r_t_s_L_o_c_a_l_e function returns _T_r_u_e if Xlib functions
  24.           are capable of operating under the current locale.  If it
  25.           returns _F_a_l_s_e, Xlib locale-dependent functions for which the
  26.           _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d return status is defined will return
  27.           _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d.  Other Xlib locale-dependent routines
  28.           will operate in the ``C'' locale.
  29.  
  30.           The _X_S_e_t_L_o_c_a_l_e_M_o_d_i_f_i_e_r_s function sets the X modifiers for
  31.           the current locale setting.  The modifier_list argument is a
  32.           null-terminated string of the form ``{@_c_a_t_e_g_o_r_y=_v_a_l_u_e}'',
  33.           that is, having zero or more concatenated
  34.           ``@_c_a_t_e_g_o_r_y=_v_a_l_u_e'' entries, where _c_a_t_e_g_o_r_y is a category
  35.           name and _v_a_l_u_e is the (possibly empty) setting for that
  36.           category.  The values are encoded in the current locale.
  37.           Category names are restricted to the POSIX Portable Filename
  38.           Character Set.
  39.  
  40.           The local host X locale modifiers announcer (on POSIX-
  41.           compliant systems, the XMODIFIERS environment variable) is
  42.           appended to the modifier_list to provide default values on
  43.           the local host.  If a given category appears more than once
  44.           in the list, the first setting in the list is used.  If a
  45.           given category is not included in the full modifier list,
  46.           the category is set to an implementation-dependent default
  47.           for the current locale.  An empty value for a category
  48.           explicitly specifies the implementation-dependent default.
  49.  
  50.           If the function is successful, it returns a pointer to a
  51.           string.  The contents of the string are such that a
  52.           subsequent call with that string (in the same locale) will
  53.           restore the modifiers to the same settings.  If
  54.           modifier_list is a NULL pointer, _X_S_e_t_L_o_c_a_l_e_M_o_d_i_f_i_e_r_s also
  55.           returns a pointer to such a string, and the current locale
  56.           modifiers are not changed.
  57.  
  58.           If invalid values are given for one or more modifier
  59.           categories supported by the locale, a NULL pointer is
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXSSSSuuuuppppppppoooorrrrttttssssLLLLooooccccaaaallll((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXSSSSuuuuppppppppoooorrrrttttssssLLLLooooccccaaaallll((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           returned, and none of the current modifiers are changed.
  75.  
  76.           At program startup, the modifiers that are in effect are
  77.           unspecified until the first successful call to set them.
  78.           Whenever the locale is changed, the modifiers that are in
  79.           effect become unspecified until the next successful call to
  80.           set them.  Clients should always call _X_S_e_t_L_o_c_a_l_e_M_o_d_i_f_i_e_r_s
  81.           with a non-NULL modifier_list after setting the locale
  82.           before they call any locale-dependent Xlib routine.
  83.  
  84.           The only standard modifier category currently defined is
  85.           ``im'', which identifies the desired input method.  The
  86.           values for input method are not standardized.  A single
  87.           locale may use multiple input methods, switching input
  88.           method under user control.  The modifier may specify the
  89.           initial input method in effect or an ordered list of input
  90.           methods.  Multiple input methods may be specified in a
  91.           single im value string in an implementation-dependent
  92.           manner.
  93.  
  94.           The returned modifiers string is owned by Xlib and should
  95.           not be modified or freed by the client.  It may be freed by
  96.           Xlib after the current locale or modifiers are changed.
  97.           Until freed, it will not be modified by Xlib.
  98.  
  99.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  100.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.